package com.stu.spring.sim.circular;

public class SimCircularCtxMain {

    public static void main(String[] args) throws Exception {
//        SimCircularCtx circularCtx = new SimCircularCtx();
//        BService bService = (BService)circularCtx.getBean("bService");
//        bService.sayB();
//        SimCircular2Ctx circularCtx = new SimCircular2Ctx();
//        BService bService = (BService)circularCtx.getBean("bService");
//        bService.sayB();
        SimCircular3Ctx circularCtx = new SimCircular3Ctx();
        IAService aService = (IAService)circularCtx.getBean("aService");
        IBService bService = (IBService)circularCtx.getBean("bService");
        aService.sayA();
        bService.sayB();
    }
}
